package core;

import spatialindex.spatialindex.Point;
import spatialindex.spatialindex.Region;

public class ParinetTest {
	public static void main(String[] args) throws Exception {
		// Parinet parinet = new Parinet();
		// parinet.loadData("D:/Research/parinet/dataset/test.txt");
		// BplusTree tree = BplusTree.ReadOnly("D:/Research/parinet/meta/tree0",
		// "D:/Research/parinet/meta/block0");
		// for (int i = 1; i < 5; i++) {
		// System.out.println(i + ": " + tree.ContainsKey(i + ""));
		// }
		double[] f1 = { 5, 10 };
		double[] f2 = { 10, 7 };
		double[] f3 = {6, 8};
		Point p = new Point(f3);
		Region r = new Region(f1, f2);
		System.out.println(r.m_pHigh[0]+" "+ r.m_pHigh[1]);
		System.out.println(r.m_pLow);
		System.out.println(r.contains(new Point(p)));
	}
}
